#include<reg51.h>
#include<intrins.h>
void delay(unsigned int i)
{
    unsigned int k;
	for(k=0;k<i;k++);
}
void main()
{
  unsigned int j,c,b;
  j=0Xfe;
  c=0x7f;
  b=0x01;
  while(1)
  {
  P1=j;
  P2=c;
  P3=b;
      j=_crol_(j,1);
	  c=_crol_(c,1);
	  b=_crol_(b,3);
  delay(30000);
  }
}

